<html>

	<head lang="en">
		<meta charset="UTF-8">
		<meta http-equiv="Expires" content="0">
		<meta http-equiv="Pragma" content="no-cache">
		<meta http-equiv="Cache-control" content="no-cache">
		<meta http-equiv="Cache" content="no-cache">
		<title class="ng-binding">大算盘智能推广</title>
		<link rel="icon" id="favicon">
		<link rel="stylesheet" href="css/bootstrap.min.css">
		<link rel="stylesheet" href="css/base.css">
		<link type="text/css" rel="stylesheet" href="css/dspIndex.css?rand=v1.0.54">
		<link type="text/css" rel="stylesheet" href="css/dspSkuMange.css?rand=v1.0.54">
		<link type="text/css" rel="stylesheet" href="css/dspAgentMange.css?rand=v1.0.54">
		<link rel="stylesheet" href="../oem/css/common.css" />
		<script src="js/fileUpload.js" async=""></script>

		<link type="text/css" rel="stylesheet" href="css/dspRecord.css?rand=v1.0.54">
		<link rel="stylesheet" href="css/layer.css?v=3.0.3303" id="layuicss-skinlayercss">
		<script src="js/layui.all.js"></script>
		<style type="text/css">
			#file1,
			#file2 {
				opacity: 0;
				width: 0;
				height: 0;
				display: none;
			}
			
			form {
				display: inline-block;
			}
			
			i {
				float: left;
			}
			
			.publish-source .content ul {
				width: 1200px;
				max-height: 360px;
				overflow-y: auto;
			}
			
			.publish-source .content li {
				width: 170px;
				height: 88px;
				position: relative;
				margin-left: 5px;
				margin-bottom: 5px;
				padding: 8px 9px 0 30px;
				float: left;
				cursor: pointer;
			}
			
			.publish-source .content .checked {
				background: url(img/icon_check_true_new.png) no-repeat;
			}
			
			.publish-source {
				width: 1200px;
				overflow: hidden;
				display: inline-block;
			}
			
			.publish-source .content li .ps-pic {
				width: 100%;
				border-bottom: 1px solid #e8e6e4;
				text-align: center;
			}
			
			.publish-source .content li .ps-pic .icon {
				width: 34px;
				height: 34px;
				margin-bottom: 8px;
			}
			
			.publish-source .content li .ps-text {
				width: 100%;
				line-height: 30px;
				text-align: center;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
			}
		</style>
	</head>

	<body data-ext-version="1.4.5" class="" style="">
		<div class="nav_top">
			<div class="logo fl" id="logo"></div>
			<ul class="nav_list fl">
				<li>
					<a data="dspIndex.html" class="href_url active">首页</a>
				</li>
				<li class="ng-scope">
					<a data="dspAgeReport.html" class="href_url">报表中心</a>
					<ul class="nav_dropdown">
						<li class="ng-scope">
							<a data="dspAgeReport.html" class="href_url">代理商报表</a>
						</li>
						<!--<li class="ng-scope">
							<a data="sku.html" class="href_url">合约资源报表</a>
						</li>-->
					</ul>
				</li>
				<li>
					<a data="creative.html" class="href_url">审核管理</a>
					<ul class="nav_dropdown">
						<li>
							<a data="creative.html" class="href_url">创意审核</a>
						</li>
						<li>
							<a data="adv.html" class="href_url">资质审核</a>
						</li>
					</ul>
				</li>
				<!--<li class="ng-scope">
					<a data="manage.html" class="href_url">合约资源管理</a>
				</li>-->
				<li>
					<a data="dspAgentMange.html" class="href_url">代理商管理</a>
				</li>
				<li class="ng-scope">
					<a data="record.html" class="href_url">财务管理</a>
					<ul class="nav_dropdown" style="padding-left: 483px; ">
						<li class="ng-scope">
							<a data="record.html" class="href_url">财务记录</a>
						</li>
						<li class="ng-scope">
							<a data="info.html" class="href_url">财务信息</a>
						</li>
						<li class="ng-scope">
							<a data="profit.html" class="href_url">利润提取</a>
						</li>
					</ul>
				</li>
			</ul>
			<div class="user" ng-mouseleave="hover=false">
				<div class="user-avatar"></div>
				<div class="user-info">
					<p class="ng-binding username_type1"></p>
					<p class="ng-binding name_type1"></p>
				</div>
				<ul class="user-list">
					<!--<li>余额：0</li>-->
					<li class="ng-binding">余额：<span class="amount"></span></li>
					<li data-toggle="modal" data-target="#pwdModal">修改密码</li>
					<!--<li  data-toggle="modal" data-target="#dspOemModal" class="ng-hide">修改OEM信息</li>-->
					<li onclick="logout()">退出登录</li>
				</ul>
			</div>
			<!--修改密码弹框-->
			<div class="modal fade" tabindex="-1" id="pwdModal">
				<div class="modal-dialog">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
							<h4 class="modal-title">修改密码</h4>
						</div>
						<div class="modal-body">
							<div class="form-group">
								<label>旧密码：</label>
								<input type="password" class="form-control ng-pristine ng-untouched ng-valid ng-empty oldPasswd">
							</div>
							<div class="form-group">
								<label>新密码：</label>
								<input type="password" class="form-control ng-pristine ng-untouched ng-valid ng-empty newPasswd">
							</div>
							<div class="form-group">
								<label>确认密码：</label>
								<input type="password" class="form-control ng-pristine ng-untouched ng-valid ng-empty newPasswd2">
							</div>
						</div>
						<div class="modal-footer">
							<button class="dsp-btn btn-blue" onclick="resetPWD()">确定</button>
							<button class="dsp-btn btn-white2" data-dismiss="modal">取消</button>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- uiView:  -->
		<ui-view class="ng-scope">
			<!-- uiView:  -->
			<ui-view class="ng-scope">
				<div class="active-page page ng-scope">
					<!--页面标题-->
					<h3 class="page-title">首页</h3>

					<!--总计列表-->
					<ul class="deal-list">
						<li>
							<p>广告公司当日花费（元）</p>
							<h3 class="ng-binding expenditureSum"></h3>
							<span class="ng-binding "><i>昨日:</i><span class="expenditureSum1"></span></span>
							<span class="ng-binding"><i>前日:</i><span class="expenditureSum2"></span></span>
						</li>
						<li>
							<p>DSP成本（元）</p>
							<h3 class="ng-binding dspSum"></h3>
							<span class="ng-binding"><i>昨日:</i><span class="dspSum1"></span></span>
							<span class="ng-binding"><i>前日:</i><span class="dspSum2"></span></span>
						</li>
						<li>
							<p>当日利润(元)</p>
							<h3 class="ng-binding profitSum"></h3>
							<span class="ng-binding"><i>昨日:</i><span class="profitSum1"></span></span>
							<span class="ng-binding"><i>前日:</i><span class="profitSum2"></span></span>
						</li>
						<li>
							<p>当日利润率</p>
							<h3 ng-bind-template="0.00%" class="ng-binding ">
								<span class="rateProfit" style="font-size: 26px;line-height: 50px;color: #49d6f2;"> </span>%
							</h3>
							<span ng-bind-template="昨日:0.00%" class="ng-binding"><i>昨日:</i><span class="rateProfit1"></span>%</span>
							<span ng-bind-template="前日:0.00%" class="ng-binding"><i>前日:</i><span class="rateProfit2"></span>%</span>
						</li>
						<li>
							<p>CPM(元)</p>
							<h3 class="ng-binding cpmSum"></h3>
							<span class="ng-binding"><i>昨日:</i><span class="cpmSum1"></span></span>
							<span class="ng-binding"><i>前日:</i><span class="cpmSum2"></span></span>
						</li>
						<li>
							<p>CPC(元)</p>
							<h3 class="ng-binding cpcSum"></h3>
							<span class="ng-binding"><i>昨日:</i><span class="cpcSum1"></span></span>
							<span class="ng-binding"><i>前日:</i><span class="cpcSum2"></span></span>
						</li>
					</ul>

					<!--趋势分析-->
					<div class="chart-box bs">
						<div class="chart-title">
							<div class="form-group fr">

							</div>

							<h3>趋势分析</h3>
						</div>
						<!-- 为 ECharts 准备一个具备大小（宽高）的 DOM -->
						<div class="chart" id="main" style=" width: 1609px; height: 400px;"></div>
					</div>
					<h3 style="text-align: right;padding: 15px;"><a data="log.html" class="href_url">查看系统日志</a></h3>
					<h4 class="order-row">媒体列表</h4>
					<div class="form-group publish-box">
						<div style="text-align: center;margin: 0 auto;">
							<div media="mediaName" config="mediaConfig" is-search="true" class="publish-source ">
								<div class="content">
									<ul class="cl" id="mediaList">
										<!--<li class="fl ng-scope checked">
											<div class="ps-pic"><img src="http://qiniu.hubcloud.com.cn/o_1bklhtvp911ur1k9ioa11sju1dsc9.png" class="icon"></div>
											<div class="ps-text ng-binding"> 超级淘IOS</div>
										</li>-->

									</ul>
								</div>
							</div>
						</div>
					</div>

				</div>
			</ui-view>
		</ui-view>

		<script src="js/jquery.min.js"></script>
		<script src="js/layer.js"></script>
		<script src="js/bootstrap.min.js"></script>
		<div id="__calendarPanel" style="position:absolute;top:0;visibility:hidden;z-index:9999;background-color:#FFFFFF;border:1px solid #cfccc7; border-radius: 5px; width:260px;height:216px;">
			<iframe name="__calendarIframe" id="__calendarIframe" width="100%" height="100%" scrolling="no" frameborder="0" style="margin:0px; border-radius: 5px;"></iframe>
		</div>
		<script src="js/echarts.min.js"></script>

		<script src="js/query.js"></script>
		<script src="js/paging.js"></script>
		<script src="js/commen.js?rand=v1.0.54"></script>
		<script src="js/fileUpload.js"></script>
		<div class="layui-layer-move"></div><input id="uploadInputfunction getTime() { [native code] }" type="file" name="file" style="display: none;"><input id="uploadInputfunction getTime() { [native code] }" type="file" name="file" style="display: none;"><input id="uploadInputfunction getTime() { [native code] }" type="file" name="file" style="display: none;"></body>
	<script>
		$(function() {
			$('.user').on('click', function() {
				$(this).toggleClass('hover');
			})

			$('.user').mouseleave(function() {
				$(this).removeClass('hover');
			});

			$('.dropdown').on('click', function() {

				if($(this).hasClass("open")) {
					$(this).removeClass('open');
				} else {
					$('.dropdown').removeClass('open');
					$(this).addClass('open');
				}
			})

			// active
		})
	</script>
	<script src="js/layui.all.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<script src="js/js_1.js"></script>

	<script>
		function uploadImg(obj) {
			$(this).imgObj = obj;
			$("#upload").trigger("click");
		}
	</script>
	<script src="js/dspindex.js"></script>
	<script src="js/dspIndexCtrl.js"></script>
	<script src="../oem/js/oem.js"></script>
	<script>
		$.ajax({
			url: url + "/sys/sysDict/getMedias",
			type: "get",
			//		参数需转为字符串
			//		json跨域
			dataType: 'json',

			//		contentType类型为json
			contentType: "application/json",
			useDefaultXhrHeader: false,
			//		请求头加上X-Token 
			 beforeSend: function(XMLHttpRequest) {
				//		token 为页面所获取
				XMLHttpRequest.setRequestHeader("X-Token", token); 
			},
			success: function(result) {
				console.log(result);

				if(result.code == '0') {
					var html = "";
					for(var i = 0; i < result.data.length; i++) {
						html += '<li class="fl ng-scope checked"><div class="ps-pic">';
						html += '<img src="' + result.data[i].value + '" class="icon"></div>';
						html += '<div class="ps-text"> ' + result.data[i].name + '</div></li>';
					}
					$("#mediaList").html(html);
				}
			},
			err: function(err) {
				layer.msg("请求失败");
			}
		});
	</script>

</html>